package com.crane.oss.xunfei.resp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class AppStudentPrescriptionReportResp implements Serializable {

    /**
     * studentName : 张 1
     * age : 11
     * gender : 1
     * sg : 120
     * tz : 52
     * itemQualityMap : {"1":[{"level":"良好","assessmentType":1,"itemId":"5","itemName":"肺活量","mark":"3000","score":"80","addScore":"0","itemUnit":"毫升#ml","weight":"0.15","itemPassRule":null}]}
     * studentPrescriptionList : [{"prescriptionId":"67be0f2a81af4c529dbe075210469c7a","prescriptionName":"肌肉力量练习","flag":1}]
     * comment1 : 身体质量指数 BMI：52 处于（>=25），表现为肥胖，需要多参加体育锻炼，增加 能量消耗，同时注意饮食健康，尽量少使用热量较高的食物。
     * comment2 : 由于平时缺乏体育锻炼，造成立定跳远(0)测试成绩不合格，位于普通学生人群的中 下水平，建议参加周期性的涉及的运动训练，以提高整体的身体素质。
     */

    private String img;
    private String studentName;
    private int age;
    @ApiModelProperty(value = "性别", name = "gender")
    private int gender;
    @ApiModelProperty(value = "身高", name = "sg")
    private String sg;
    @ApiModelProperty(value = "体重", name = "tz")
    private String tz;
    @ApiModelProperty(value = " 1:有氧耐力,2:速度,3:柔韧,4:协调,5: 力量", name = "itemQualityMap")
    private Map<String,List<ItemQuality>> itemQualityMap;
    private String comment1;
    private String comment2;
    @ApiModelProperty(value = " 学生处方列表", name = "studentPrescriptionList")
    private List<StudentPrescriptionListBean> studentPrescriptionList;

    @Data
    public static class ItemQuality implements Serializable {
        /**
         * level : 良好
         * assessmentType : 1
         * itemId : 5
         * itemName : 肺活量
         * mark : 3000
         * score : 80
         * addScore : 0
         * itemUnit : 毫升#ml
         * weight : 0.15
         * itemPassRule : null
         */

        @ApiModelProperty(value = "等级", name = "level")
        private String level;
        @ApiModelProperty(value = "素质类型 1:有氧耐力,2:速度,3:柔韧,4:协调,5: 力量", name = "assessmentType")
        private int assessmentType;
        @ApiModelProperty(value = "项目id", name = "itemId")
        private String itemId;
        @ApiModelProperty(value = "项目名称", name = "itemName")
        private String itemName;
        @ApiModelProperty(value = "成绩", name = "mark")
        private String mark;
        @ApiModelProperty(value = "分数", name = "score")
        private String score;
        @ApiModelProperty(value = "附加分", name = "addScore")
        private String addScore;
        @ApiModelProperty(value = "单位", name = "itemUnit")
        private String itemUnit;
        @ApiModelProperty(value = "权重", name = "weight")
        private String weight;
        @ApiModelProperty(value = "规则", name = "itemPassRule")
        private String itemPassRule;
    }

    @Data
    public static class StudentPrescriptionListBean implements Serializable {
        /**
         * prescriptionId : 67be0f2a81af4c529dbe075210469c7a
         * prescriptionName : 肌肉力量练习
         * flag : 1
         */
        @ApiModelProperty(value = "处方id", name = "prescriptionId")
        private String prescriptionId;
        @ApiModelProperty(value = "处方名称", name = "prescriptionName")
        private String prescriptionName;
        @ApiModelProperty(value = "   1 为 bmi 处方 0 为其他个人 处方", name = "flag")
        private int flag;
    }
}
